package com.lagou.provider.server.impl;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author 陶肖寅
 * @version V1.0
 * @Package com.lagou.provider.server.impl
 * @email fromlx@126.com
 * @date 2020-04-16 23:24
 * @Copyright © 2020-2021 城云科技(中国)有限公司
 */
public class DubboPureMain {
    public static void main(String[] args)throws Exception {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ProviderConfiguration.class);
        context.start();
        System.in.read();
    }

    @Configuration
    @EnableDubbo(scanBasePackages = "com.lagou.provider.server.impl")
    @ComponentScan(value = {"com.lagou.provider.server.impl"})
    @PropertySource("classpath:/dubbo-provider.properties")
    static class ProviderConfiguration {
    }
}

